package ywpt.service.config;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import ywpt.model.ServiceType;

public interface ServiceTypeService {

	public abstract ServiceType getServiceTypeInfoById(Long id);

	public abstract int getServiceTypeInfoCountByCriteria(DetachedCriteria query);

	public abstract List<ServiceType> getServiceTypeInfos(
			DetachedCriteria query, int pageSize, int i);

	public abstract List<ServiceType> getServiceInfos(DetachedCriteria query);
	
	public abstract String createTypeCode();

	public abstract void saveServiceTypeInfo(ServiceType serviceTypeInfo);

	public abstract void updateServiceTypeInfo(ServiceType serviceTypeInfo);

	public abstract void removeServiceTypeInfo(Long id);

	public abstract List<ServiceType> getServiceTypeInfos();

	public abstract int getServiceTypesCountByName(String typeName);
	
	public abstract List<ServiceType> getServiceTypesByTypeName(String typeName, int start, int size);
	
	
}
